package com.javapub.flowable.myflowable.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.javapub.flowable.myflowable.pojo.Person;

import javax.validation.Valid;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@RestController
@RequestMapping("/person")
@Validated
public class PersonController {

    
    @GetMapping("/test")
    public String getMethodName(@Valid @RequestBody Person person) {
        return "成功";
    }
    

}
